
<div id="foodcollocation-add-edit">

    <div class="title">
        添加食材搭配
    </div>

        <form action="__APP__/FoodCollocation/insert" method="post">

            <div class="org">
                <strong>所属栏目：</strong>
                <select name="sectionid" class="foodsectionid">
                    <option value="0" selected="selected">---请选择所属栏目---</option>
                    <volist name="data" id="vo">
                        <option value="<{$vo.id}>"><{$vo.name}></option>
                    </volist>
                </select>　

                <strong>所属分类：</strong>
                <select name="categoryid" class="foodcategoryid">
                    <option value="0" selected="selected">---请选择所属分类---</option>
                </select>　

                <strong>目标食材：</strong>
                <select name="articleid" class="foodarticleid">
                    <option value="0" selected="selected">---请选择所属食材---</option>
                </select>　
                <a style="float:right;" href="javascript:;" class="adds">添加搭配</a>
            </div>

            <div class="content">

                    <table class="dest">
                        <tr>
                            <td rowspan="2" style="width:70px;" class="img"><img class="orgimg" src="__PUBLIC__/Content/FoodCollocation/orgimg.jpg" /></td>
                            <td rowspan="2">+</td>
                            <td rowspan="2" style="width:70px;" class="imgs" ><img alt="destimg" class="destimg" src="__PUBLIC__/Content/FoodCollocation/destimg.jpg" /></td>
                            <td rowspan="2">&nbsp;</td>
                            <td>所属栏目：</td>
                            <td>
                                <select name="destsectionid[]">
                                    <option value="0" selected="selected">---请选择所属栏目---</option>
                                    <volist name="data" id="vo">
                                        <option value="<{$vo.id}>"><{$vo.name}></option>
                                    </volist>
                                </select>
                            </td>
                            <td>所属分类：</td>
                            <td>
                                <select name="destcategoryid[]">
                                    <option value="0" selected="selected">---请选择所属分类---</option>
                                </select>
                            </td>
                            <td>目标食材：</td>
                            <td>
                                <select name="destarticleid[]">
                                    <option value="0" selected="selected">---请选择搭配食材---</option>
                                </select>　

                                <a style="float:right;" href="javascript:;" class="remove">删除</a>

                            </td>
                        </tr>
                        <tr>

                            <td>搭配宜忌：</td>
                            <td>
                                <select name="goodorbad[]" class="collocaltion">
                                    <option value="0" selected="selected">---请选择搭配宜忌---</option>
                                    <option value="1">宜</option>
                                    <option value="2">忌</option>
                                </select>
                            </td>
                            <td>搭配描述：</td>
                            <td colspan="3">
                                <input type="text" style="width:99%" name="description[]" />
                            </td>
                        </tr>
                    </table>
                </div>

       <div class="buttom">
           <input type="submit" class="submit" value="添加搭配" />
       </div>
       </form>


       <div class="adddest" style="display:none;">
           <table class="dest">
               <tr>
                   <td rowspan="2" style="width:70px;" class="img"><img class="orgimg" src="__PUBLIC__/Content/FoodCollocation/orgimg.jpg" /></td>
                   <td rowspan="2">+</td>
                   <td rowspan="2" style="width:70px;" class="imgs" ><img alt="destimg" class="destimg" src="__PUBLIC__/Content/FoodCollocation/destimg.jpg" /></td>
                   <td rowspan="2">&nbsp;</td>
                   <td>所属栏目：</td>
                   <td>
                       <select name="destsectionid[]">
                           <option value="0" selected="selected">---请选择所属栏目---</option>
                           <volist name="data" id="vo">
                               <option value="<{$vo.id}>"><{$vo.name}></option>
                           </volist>
                       </select>
                   </td>
                   <td>所属分类：</td>
                   <td>
                       <select name="destcategoryid[]">
                           <option value="0" selected="selected">---请选择所属分类---</option>
                       </select>
                   </td>
                   <td>目标食材：</td>
                   <td>
                       <select name="destarticleid[]">
                           <option value="0" selected="selected">---请选择搭配食材---</option>
                       </select>　

                       <a style="float:right;" href="javascript:;" class="remove">删除</a>

                   </td>
               </tr>
               <tr>

                   <td>搭配宜忌：</td>
                   <td>
                       <select name="goodorbad[]" class="collocaltion">
                           <option value="0" selected="selected">---请选择搭配宜忌---</option>
                           <option value="1">宜</option>
                           <option value="2">忌</option>
                       </select>
                   </td>
                   <td>搭配描述：</td>
                   <td colspan="3">
                       <input type="text" style="width:99%" name="description[]" />
                   </td>
               </tr>
           </table>
       </div>



    </div>

<script type="text/javascript" src="../Public/js/foodcollocation.js"></script>
